<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    

<%@ page session="true" %>
<html>
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
     <link rel="stylesheet" type="text/css" href="style.css" />
 <title>Search movies</title>
</head>
<body>
  <div id="container">
		<div id="header">
		<center><img src="../../images/video-library-logo-2.jpg" align="center" height="80px" width="250px" alt="" /></center>
        	
             </div>   
        
        <div id="menu">
        	<ul>
            	<li class="menuitem"><a href="searchMovies.jsp">Home</a></li>
                <li class="menuitem"><a href="searchMovies.jsp">SearchMovie</a></li>
                <li class="menuitem"><a href="profile.jsp">Profile</a></li>
                <li class="menuitem"><a href="balance.jsp">Balance</a></li>
                <li class="menuitem"><a href="cart.jsp">Cart</a></li>
              <li class="menuitem"><a href="fine.jsp">Fine</a></li>
                 <li class="menuitem"><a href="issuedMovies.jsp">IssuedMovies</a></li>
              <li class="menuitem"><a href="contactUS.jsp">Contact Us</a></li>
              
              

            </ul>
        </div>
        
        <div id="leftmenu">

        </div>            
                
        
        
        
		<div id="content">
       
             
        
        <div id="content_top"></div>
        <div id="content_main">
          
 <center>
 <form name="Form" action="" method="POST" onsubmit="Cart.jsp">
<table>
<BR/><BR/>
<tr><td><h2>Search Results</h2></td></tr>
<tr></tr>
<tr><td>
<%  if (list.size() > 0)
    {
        int j = 0;
        for (int i = 0; i < list.size(); i++)
        {
            Obj x= list.get(i);
%>
<form action="servlet" method="get">
    <tr>
        <td><%=++j%></td>
        <td><input type="hidden" name="ID" value="<%=x.getMovieId()%>"></td>
        <td><%=x.getMovieName()%> </td>
        <td><%=x.getBanner()%> </td>
        <td><%=x.getDescription()%> </td>
         <td><%=x.getMovieRent()%> </td>

        <td>
            <input type="submit" name="action" value="Add"></td>
    </tr>
<%
    } %>
</td></tr>
<tr></tr>
<tr><td><h3> Click on Cart menu to view your cart.</h3></td></tr>
 <tr height="200px"></tr>
</table>
 </form>
 </center>
   </div>
 
            
        <div id="content_bottom"></div>
      
 
</body>
</html>